<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <fmt:setBundle basename="ApplicationMessage" />
  <fmt:setLocale value="zh_CN" />

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  <link href="${ctx.resource}/css/select2.css" rel="stylesheet">
  <link href="${ctx.resource}/css/select2-bootstrap.css" rel="stylesheet">
  <title>付款详情 - 租房宝金融管理平台</title>
</head>
<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <div class="web-g-main">

    <%@ include file="/WEB-INF/include/aside.jsp"%>
    <div class="content">
      <header class="header clearfix">
          <h3 class="pull-left">付款详情</h3>
          <div class="btn-toolbar pull-right">
          	<h3><a href="javascript:history.go(-1)" target=_self><< 返回</a></h3>
          </div>          
       </header>

       <c:if test="${not empty infoMessage}">
            <div class="alert alert-success alert-dismissable alert-fade top-margin-10 text-align-center">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <i class="glyphicon glyphicon-info-sign"></i>&nbsp;&nbsp;
              <fmt:message key="${infoMessage}" />
            </div>
       </c:if>

       <div class="row">
            <div class="col-xs-12">
            
              <div class="panel panel-default feature-panel">
              
                <div class="panel-heading">
                  <h3 class="panel-title">付款信息</h3>
                </div>
                
                <div class="panel-body">
                
                  <div class="row">
                      <div class="text-align-right col-xs-1 col-md-1"><p>付款账号</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.payerAccount.accountNo}</strong></p></div>                
                      <div class="text-align-right col-xs-1 col-md-1"><p>支付方式</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.paymentInstitution.name}</strong></p></div>
                      <div class="text-align-right col-xs-1 col-md-1"><p>总金额</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.amount}</strong></p></div>                      
                  </div>
                  
                  <div class="row">
                      <div class="text-align-right  col-xs-1 col-md-1"><p>收款银行</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.receiveAccount.bank.fullName}</strong></p></div>
                      <div class="text-align-right  col-xs-1 col-md-1"><p>收款账号</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.receiveAccount.accountNo}</strong></p></div>
                      <div class="text-align-right  col-xs-1 col-md-1"><p>收款户名</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.receiveAccount.accountName}</strong></p></div>                                            				
                  </div>        
                          
                  <div class="row">
                      <div class="text-align-right  col-xs-1 col-md-1"><p>状态</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong><fmt:message key="${batchPayRecord.payStatus.key}" /></strong></p></div>
                      <div class="text-align-right col-xs-1 col-md-1"><p>备注</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.remark}</strong></p></div>  
                  	  <div class="text-align-right col-xs-1 col-md-1"><p>申请时间</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.applyTime}</strong></p></div>                                        
                  </div>

                  <div class="row">
                      <div class="text-align-right col-xs-1 col-md-1"><p>流水号</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.serialNo}</strong></p></div>
                  	  <div class="text-align-right col-xs-1 col-md-1"><p>支付时间</p></div>
                      <div class="text-align-left col-xs-3 col-md-3"><p><strong>${batchPayRecord.payTime}</strong></p></div>                      
                  </div>
                </div>
                
              </div>
            </div>
            
       </div>
       
        <div class="row">
         <div class="col-xs-12">
         
           <div class="panel panel-default feature-panel">
             <div class="panel-heading">
               <h3 class="panel-title">关联订单</h3>
             </div>
               <div class="panel-body">
					<div class="container">
					<div class="row">
						<div class="col-xs-4">
								<div class="btn-group">
									<a href="${ctx}/payment/${batchPayRecord.id}/detail/export" class="btn btn-default btn-shadow btn-shadow-default demo2do-btn" data-target="#" title="导出Excel"><i class="glyphicon glyphicon-download-alt"></i>&nbsp;&nbsp;导出Excel</a>
								</div>
						</div>
					</div>
					</div>               
			       <div class="col-xs-12">
			         <table
			           class="table table-striped demo2do-table bottom-margin-20">
			           <thead>
			             <tr>
			               <th>订单号</th>
			               <th>付款人</th>
			               <th>收款银行</th>
			               <th>收款账户名</th>
			               <th>收款账号</th>
			               <th>订单金额</th>
			               <th>订单状态</th>
			             </tr>
			           </thead>
			           <tbody>
			             <c:forEach var="paymentInfo"
			               items="${paymentInfoList}">
			               <tr>
			                    <td>${paymentInfo.order.orderNo}</td>
			                    <td>${paymentInfo.order.customer.name}</td>
			                    <td>${paymentInfo.receiveAccount.bank.fullName }</td>
			                    <td>${paymentInfo.receiveAccount.accountName }</td>
			                    <td>${paymentInfo.receiveAccount.accountNo }</td>
			                    <td>&yen;&nbsp;${paymentInfo.order.totalRent}</td>
			                    <td><fmt:message key="${paymentInfo.order.orderStatus.key}" /></td>
			               </tr>
			             </c:forEach>
			           </tbody>
			         </table>
			       </div>
       		</div>
       </div>
     </div>  
    </div>
    
    <%@ include file="/WEB-INF/include/footer.jsp"%>
     
  </div>

</div>   
  

  <%@ include file="/WEB-INF/include/script.jsp"%>
  <script src="${ctx.resource}/js/bootstrap-alert-fade-trigger.js"></script>
  <script src="${ctx.resource}/js/bootstrap-switch.min.js"></script>
  <script src="${ctx.resource}/js/bootstrap-modal-trigger.js"></script>
  <script src="${ctx.resource}/js/select2.min.js"></script>
  <script src="${ctx.resource}/js/select2_locale_zh-CN.js"></script>
  <script src="${ctx.resource}/js/earth-preupload.js"></script>
  <script src="${ctx.resource }/js/jquery.form.min.js"></script>
  
</body>
</html>
